package com.terracloud.server.vo;

import com.terracloud.server.common.data.User;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.beans.BeanUtils;

import java.util.UUID;

/**
 *
 * @author chenhainan
 * @since 2025/10/21
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class UserWithPasswordVo extends User {

    private String password;


    public User toUser() {
        final var user = new User();
        BeanUtils.copyProperties(this, user,"password");
        return user;
    }

}
